import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

// 路由类型:RouteRecordRaw
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "Home",
    component: () => import('/src/components/Apps/Simulation/Home.vue'),
  },
  {
    path: "/WindowSystem",
    name: "WindowSystem",
    component: () => import('/src/components/Apps/Simulation/WindowSystem/index.vue'),
  },
  {
    path: "/ENGINE",
    name: "ENGINE",
    component: () => import('/src/components/Apps/Simulation/ENGINE/index.vue'),
  },
  {
    path: "/lightSystem",
    name: "lightSystem",
    component: () => import('/src/components/Apps/Simulation/lightSystem/index.vue'),
  },
  {
    path: "/WiperSystem",
    name: "WiperSystem",
    component: () => import('/src/components/Apps/Simulation/WiperSystem/index.vue'),
  },
];

const router = createRouter({
  // 路由模式
  history: createWebHistory(),
  routes,
});

export default router;